package com.ayf.payment.game.api.mapper.platform;

import com.ayf.payment.game.api.entity.platform.WxUser;
import org.apache.ibatis.annotations.Param;import tk.mybatis.mapper.common.Mapper;

public interface WxUserMapper extends Mapper<WxUser> {
    /**
     * 根据openid获取用户信息
     *
     * @param openid 当前公众号唯一凭证
     * @return WxUser 用户信息
     */
    WxUser selectWxUserByOpenid(String openid);

    /**
     * 更新用户信息
     *
     * @param wxUser
     * @return
     */
    int updateWxUserByUserId(@Param("w") WxUser wxUser);

    WxUser getWxUserByLoginAccount(@Param("loginAccount")String loginAccount);
}